﻿using Daily.Application.DTO;
using DailyApp.Application.DTO.WaitInfo;
using DailyApp.WPF.Models;
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace DailyApp.WPF.ViewModels
{
    public class WaitUCViewModel : BindableBase
    {
        public WaitUCViewModel()
        {
            CreateWaitInfoList();
            //CloseWindowCommand = new DelegateCommand(Close);
        }
        #region 实现方法
        private void CreateWaitInfoList()
        {
            WaitInfoList = new List<WaitInfoDTO>();
            WaitInfoList.Add(new WaitInfoDTO() { Title = "测试录屏", Content = "仔细给客户演示测试" });
            WaitInfoList.Add(new WaitInfoDTO() { Title = "上传录屏", Content = "上传录屏，上传时，仔细检査是否有效果录屏等" });
            WaitInfoList.Add(new WaitInfoDTO() { Title = "测试录屏", Content = "仔细给客户演示测试" });
            WaitInfoList.Add(new WaitInfoDTO() { Title = "上传录屏", Content = "上传录屏，上传时，仔细检査是否有效果录屏等" });
            WaitInfoList.Add(new WaitInfoDTO() { Title = "测试录屏", Content = "仔细给客户演示测试" });
            WaitInfoList.Add(new WaitInfoDTO() { Title = "上传录屏", Content = "上传录屏，上传时，仔细检査是否有效果录屏等" });
        }


        #endregion

        #region 定义方法
        public DelegateCommand MaxCommand { get; set; }

        #endregion

        #region 属性

        private List<WaitInfoDTO> waitInfoList;

        public List<WaitInfoDTO> WaitInfoList
        {
            get { return waitInfoList; }
            set { waitInfoList = value; RaisePropertyChanged(); }
        }
        #endregion


    }
}
